package com.niuwa.p2p.core.utils;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 字典常量类
 * 
 * @author zzf
 *
 */
public class DictConstant {

	/**
	 * 
	 * 常用的状态位(是，否),eg:是否是投资用户，Y：是，N：不是
	 *
	 */
	public enum FlagStatus {
		Y, N
	}
	
	public enum TimeFormat {
		LONGTIME("yyyy-MM-dd HH:mm:ss", "长时间"), SHORTTIME("yyyy-MM-dd", "短时间");
		private String code;
		private String name;
		private TimeFormat(String code, String name) {
			this.code = code;
			this.name = name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 
	 * 产品模板类型
	 *
	 */
	public enum TempType {
		INVEST, LOAN, TRANSFER, PROJECT
	}

	/**
	 * 
	 * M:男，F：女
	 *
	 */
	public enum Sex {
		F, M
	}

	/**
	 * 客户状态
	 *
	 *
	 */
	public enum CustStatus {
		NORMAL("10", "正常"), LOCK("20", "锁定"), DISABLED("30", "禁用"), CANCEL(
				"90", "注销");
		private String code;
		private String name;

		private CustStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public Map<String, String> getValues() {
			Map<String, String> map = new LinkedHashMap<String, String>();
			map.put("10", "正常");
			map.put("20", "锁定");
			map.put("30", "禁用");
			return map;
		}
	}

	/**
	 * 资金账户状态
	 * 
	 *
	 */
	public enum AccountStatus {
		NORMAL("10", "正常"), LOCK("20", "锁定"), DISABLED("30", "禁用"), CANCEL(
				"90", "注销");
		private String code;
		private String name;

		private AccountStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 账户审核状态
	 * 
	 *
	 */
	public enum AuditStatus {
		WAITING_AUDIT("WA", "等待审核"), AUDIT_PASSED("AP", "审核通过"), AUDIT_REJECT(
				"AR", "审核拒绝");
		private String code;
		private String name;

		private AuditStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 审核类型
	 * 
	 *
	 */
	public enum AuditType {
		CUST_AUDIT("WA", "客户状态审核"), ACCOUNT_AUDIT("AA", "资金账户状态审核");
		private String code;
		private String name;

		private AuditType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 资金账户状态
	 * 
	 *
	 */
	public enum CustType {
		PERSONAL("PERS", "个人"), COMPANY("COMP", "企业");
		private String code;
		private String name;

		private CustType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	public enum AuthStatus {
		NO_AUTH("NA", "未认证"), AUTH_DOING("AD", "认证中"), AUTH_SUCCESS("AS", "已认证"), AUTH_FAILURE(
				"AF", "认证失败");
		private String code;
		private String name;

		private AuthStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 账户操作状态
	 * 
	 *
	 */
	public enum AccountOperStatus {
		LOCK("20", "锁定"), UNLOCK("25", "解锁"), DISABLED("30", "禁用"), ENABLE(
				"35", "启用"), CANCEL("90", "注销");
		private String code;
		private String name;

		private AccountOperStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 模板或协议审核动作类型
	 */
	public enum OperateType {
		REJECT("REJECT", "拒绝"), PASS("PASS", "通过");
		private String code;
		private String name;

		private OperateType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品模板审核状态
	 */
	public enum TempStatus {
		WAIT("WAIT", "待审核"), PASS("PASS", "已审核"), NO_PASS("NO_PASS", "未通过");
		private String code;
		private String name;

		private TempStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品模板协议审核状态
	 */
	public enum ProtStatus {
		WAIT("WAIT", "待审核"), PASS("PASS", "已审核"), NO_PASS("NO_PASS", "未通过");
		private String code;
		private String name;

		private ProtStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品模板编号类型
	 */
	public enum prodCodeType {
		MBTZ("MBTZ", "投资产品模板编号序列"), MBJK("MBJK", "投资产品模板编号序列"), MBZR("MBZR",
				"债权转让产品模板编号序列");
		private String code;
		private String name;

		private prodCodeType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品模板协议编号类型
	 */
	public enum protCodeType {
		XYJK("XYJK", "借款协议序列"), XYPT("XYPT", "网站协议序列"), XYTZ("XYTZ", "投资协议序列"), XYYD(
				"XYYD", "移动产品协议序列");
		private String code;
		private String name;

		private protCodeType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品模板类型
	 * 
	 * @author zhangbo
	 */
	public enum ProdTemplateType {

		INVEST_PT("INVEST", "投资产品模板"), LOAN_PT("LOAN", "借款产品模板"), TRANSFER(
				"TRANSFER", "债权转让模板"), PROJECT("PROJECT", "借款模板"),;

		private String code;

		private String name;

		private ProdTemplateType(String _code, String _name) {
			this.code = _code;
			this.name = _name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 协议产品协议类型
	 */
	public enum ProtType {
		INVEST("INVEST", "投资", "XYTZ"), LOAN("LOAN", "借款", "XYJK"), WEB("WEB",
				"网站", "XYPT"), MOBILE("MOBILE", "移动", "XYYD");
		private String code;
		private String name;
		private String seqKey; // 产品协议的编码命名 例如: XYTZ000001

		private ProtType(String code, String name, String seqKey) {
			this.code = code;
			this.name = name;
			this.seqKey = seqKey;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getSeqKey() {
			return seqKey;
		}

		public void setSeqKey(String seqKey) {
			this.seqKey = seqKey;
		}
	}

	/**
	 * 项目类型
	 */
	public enum ProjectType {
		CLAIM("CLAIM", "投资", "CLAIM"), LOAN("LOAN", "借款", "LOAN");
		private String code;
		private String name;
		private String seqKey; // 编码命名 例如: CLAIM000001

		private ProjectType(String code, String name, String seqKey) {
			this.code = code;
			this.name = name;
			this.seqKey = seqKey;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getSeqKey() {
			return seqKey;
		}

		public void setSeqKey(String seqKey) {
			this.seqKey = seqKey;
		}
	}

	/**
	 * 期限
	 */
	public enum TermType {
		D("D", "天"), M("M", "月"), Y("Y", "年");
		private String code;
		private String name;

		private TermType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 项目去向
	 */
	public enum ProjectTo {
		NO_ASSIGN("NO_ASSIGN", "未分配"), FRONT("FRONT", "前台"), BACK("BACK", "后台"), APPROVAL_SYS(
				"APPROVAL_SYS", "审批系统");
		private String code;
		private String name;

		private ProjectTo(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 项目操作类型
	 */
	public enum ClaimOperateType {
		DIRECT_RELEASE("DIRECT_RELEASE", "直投发布"), BACK_MATCH("BACK_MATCH",
				"后台匹配"), REJECT_PROJECT("REJECT_PROJECT", "退回项目");
		private String code;
		private String name;

		private ClaimOperateType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品状态
	 */
	public enum ReleaseStatus {
		NO_RELEASE("NO_RELEASE", "未发布"),	
		WAIT_APPLY("WAIT_APPLY", "待申请"),	
		WAIT_AUDIT("WAIT_AUDIT", "待审核"),	
		WAIT_RELEASE("WAIT_RELEASE", "待发布"),	
		RELEASED("RELEASED", "已发布"),	
		OFFLINE("OFFLINE", "流标"),	
		RELEASE_BACK("RELEASE_BACK", "发布退回"),	
		REJECT_AUDIT("REJECT_AUDIT", "退回审批"),	
		MATCHING("MATCHING", "匹配中"),	
		MATCHED("MATCHED", "已匹配"),	
		NO_PASS("NO_PASS", "未通过"),	
		NO_MATCH("NO_MATCH", "未匹配"),	
		FULL_SCALE("FULL_SCALE", "满标"),	
		COMPLETE_SCALE("COMPLETE_SCALE", "结标");
		
		private String code;
		private String name;

		private ReleaseStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品操作类型
	 */
	public enum ProdOperateType {
		APPLY_RELEASE("APPLY_RELEASE", "申请发布"), EDIT("EDIT", "编辑"), OBTAIN_FUND(
				"OBTAIN_FUND", "调取资金"), PASS("PASS", "通过"), REJECT("REJECT",
				"拒绝"), STOP_RELEASE("STOP_RELEASE", "终止发布"), STOP_USE(
				"STOP_USE", "下线"), RETURN("RETURN", "退回");
		private String code;
		private String name;

		private ProdOperateType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品类型 -- 计划类
	 */
	public enum ProductType {
		PROD_NEW("PROD_NEW", "新客专享"), PROD_A("PROD_A", "优选计划A"), PROD_B(
				"PROD_B", "优选计划B"), PROD_C("PROD_C", "优选计划C");
		private String code;
		private String name;

		private ProductType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品类型 -- 直投类
	 */
	public enum DirectProdType {
		NW_PROD("NW_PROD", "牛娃精选");

		private String code;
		private String name;

		private DirectProdType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品类型 -- 债权转让类
	 */
	public enum TransProdType {
		TRANS_PROD("TRANS_PROD", "债权转让");

		private String code;
		private String name;

		private TransProdType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 产品类型
	 */
	public enum ProductIdType {
		CPZT("CPZT", "直投类产品"), CPJH("CPJH", "计划类产品"), CPDT("CPDT", "债转类产品");
		private String code;
		private String name;

		private ProductIdType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/*
	 * 渠道类型
	 */
    public enum ChannelIdType {
        QDYH("QDYH", "渠道用户"), GSXX("GSXX","公司信息"), GDXX("GDXX","股东信息"),JLXX("JLXX","经理信息");
        
        private String code;
        private String name;

        private ChannelIdType(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

	/**
	 * 担保方式
	 */
	public enum GuaranteeMethod {
		CAPITAL_INTEREST("CAPITAL_INTEREST", "100%本息担保"), CAPITAL("CAPITAL",
				"100%本金担保");
		private String code;
		private String name;

		private GuaranteeMethod(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 周期类型
	 */
	public enum TimeUit {
		D("D", "日"), M("M", "月"), Y("Y", "年");
		private String code;
		private String name;

		private TimeUit(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	
	/**
	 * @title 投资方式
	 *
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月5日
	 */
	public enum InvestMethod{
		DIRECT("DIRECT", "直接投资"), PLAN("PLAN", "优选计划"),TRANSFER("TRANSFER", "债权认购");
		private String code;
		private String name;

		private InvestMethod(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title 渠道公司审核状态
	 *
	 * @author jsj
	 * @version 1.0
	 * @created 2015年4月7日
	 */
	public enum ChannelAuditStatus{
		EDIT("EDIT", "材料录入"), AUDITING("AUDITING", "审核中"), RETURN("RETURN", "退回"), PASS("PASS", "核准"), REJECT("REJECT", "拒绝"),FORBIDDEN("FORBIDDEN", "禁用");
		private String code;
		private String name;

		private ChannelAuditStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * @title 借款项目审核状态
	 *
	 * @author jsj
	 * @version 1.0
	 * @created 2015年4月7日
	 */
	public enum LoanAuditStatus{
		EDIT("EDIT", "借款录入"), AUDITING("AUDITING", "借款审核中"), RETURN("RETURN", "借款退回"), PASS("PASS", "借款核准"), REJECT_LOAN("REJECT_LOAN", "放款拒绝"), REJECT_VIEW("REJECT_VIEW", "面签拒绝"),VIEW_PREPARE("VIEW_PREPARE", "面签准备"),VIEWING("VIEW_PREPARE", "面签中"),VIEW_PASS("VIEW_PASS", "面签通过"),LOANING("LOANING", "放款中"),LOANED("LOANED", "已放款");
		private String code;
		private String name;

		private LoanAuditStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * @title 渠道公司审核操作类型
	 *
	 * @author jsj
	 * @version 1.0
	 * @created 2015年4月7日
	 */
	public enum ChlOperAuditType{
		EDIT("EDIT", "材料录入"), SUBMIT("SUBMIT", "提交审核"), PASS("PASS", "审核批准"), RETURN("RETURN", "退回"), START_USE("START_USE", "启用"), FORBIDDEN("FORBIDDEN", "禁用"), ADJUST("ADJUST", "额度调整");
		private String code;
		private String name;

		private ChlOperAuditType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * @title 借款项目审核操作类型
	 *
	 * @author jsj
	 * @version 1.0
	 * @created 2015年4月7日
	 */
	public enum BorrowOperAuditType{
		LOAN_REJECT("LOAN_REJECT", "放款拒绝"), AUDIT_RETURN("AUDIT_RETURN", "审核退回"), AUDIT_PASS("AUDIT_PASS", "审核通过"), AUDIT_REJECT("AUDIT_REJECT", "核准拒绝"), VIEW_PASS("VIEW_PASS", "面签通过"), VIEW_REJECT("VIEW_REJECT", "面签拒绝"), LOAN_PASS("LOAN_PASS", "放款通过"),SUBMIT_AUDIT("SUBMIT_AUDIT","提交审核");
		private String code;
		private String name;

		private BorrowOperAuditType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 自转债权转让操作类型
	 * @author Dell
	 *
	 */
	public enum TransOperateType{
		PASSED("PASSED", "通过"), REJECT("REJECT", "拒绝"), DOWN("DOWN", "下线");
		private String code;
		private String name;

		private TransOperateType(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 用户债权状态
	 * @author Dell
	 *
	 */
	public enum CreditTransStatus{
		WAIT_TRANS("WAIT_TRANS", "待转让"), TRANSFERRING("TRANSFERRING", "转让中"), TRANSFERRED("TRANSFERRED", "已转让");
		private String code;
		private String name;

		private CreditTransStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 债权申请转让状态
	 * @author Dell
	 *
	 */
	public enum TranferStatus{
		WAIT_AUDIT("WAIT_AUDIT", "待审核"), NO_PASS("NO_PASS", "未通过"), NO_MATCH("NO_MATCH", "未匹配"),
		MATCHING("MATCHING", "匹配中"), MATCHED("MATCHED", "已匹配"), RELEASED("RELEASED", "已发布"), DOWN("DOWN", "已下线");
		private String code;
		private String name;

		private TranferStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * @title 渠道公司审核动作
	 *
	 * @author jsj
	 * @version 1.0
	 * @created 2015年4月7日
	 */
	public enum ChlAuditAction{
		PASS("PASS", "批准"), RETURN("RETURN", "退回"), REJECT("REJECT", "拒绝");
		private String code;
		private String name;

		private ChlAuditAction(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 证件类型
	 */
	public enum certType{
		SFZ("10","身份证"),JGZ("11","军官证"),SBZ("12","士兵证"),JGUANZ("13","警官证"),
		HZ("14","护照"),GATXZ("15","港澳通行证 "),TWTXZ("16","台湾通行证");
		private String code;
		private String name;
		private certType(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 绑定银行卡状态
	 */
	public enum bindCardStatus{
		WAIT_BIND("WAIT_BIND","未绑定"),BINDING("BINDING","绑定中"),
		BIND_OK("BIND_OK","绑定成功"),BIND_NO("BIND_NO","绑定失败");
		private String code;
		private String name;
		private bindCardStatus(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 红包规则状态
	 */
	public enum redRuleStatus{
		WAIT_VALID("WAIT_VALID","待生效"),HAD_VALID("HAD_VALID","已生效"), INVALID("INVALID","已失效");
		private String code;
		private String name;
		private redRuleStatus(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * 红包使用状态
	 */
	public enum redUseStatus{
		NO_USE("NO_USE","未使用"),USED("USED","已使用"),
		WAIT_VALID("WAIT_VALID","待生效"),EXPIRED("EXPIRED","已过期"),
		LOCK("LOCK","锁定"),WAIT_AUDIT("WAIT_AUDIT","待审核"),
		REJECT("REJECT","拒绝");
		private String code;
		private String name;
		private redUseStatus(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 红包使用范围
	 */
	public enum redUseRange{
		D("D","直投"),P("P","计划"),
		T("T","债转"),W("W","提现"),
		R("R","还款");
		private String code;
		private String name;
		private redUseRange(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 平台类型
	 */
	public enum platForm{
		P2P("P2P","P2P"),APP("APP","APP");
		
		private String code;
		private String name;
		private platForm(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 红包生成动作
	 */
	public enum triggerAction{
		MANNUAL("MANNUAL","手动"),REGISTER("REGISTER","注册"),
		OPEN_ACCT("OPEN_ACCT","资金账户开户"),INVEST("INVEST","投资"),
		RECOMMEND("RECOMMEND","推荐好友");
		private String code;
		private String name;
		private triggerAction(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 产品属性设置类型
	 */
	public enum SetType{
		INDETERMINE("INDETERMINE","待定"),HADSETTED("HADSETTED","已设置"),
		DEFAULT("DEFAULT","缺省值"),INVALID("INVALID","无效项");
		private String code;
		private String name;
		private SetType(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 密保安全问题字典
	 */
	public enum safetyProblem{
		PROBLEM_ONE("PROBLEM_ONE","您母亲的姓名是？"),PROBLEM_TWO("PROBLEM_TWO","您父亲的姓名是？"),
		PROBLEM_THREE("PROBLEM_THREE","您配偶的姓名是？"),PROBLEM_FOUR("PROBLEM_FOUR","您的出生地是？"),
		PROBLEM_FIVE("PROBLEM_FIVE","您初中班主任的名字是？"),PROBLEM_SIX("PROBLEM_SIX","您的小学校名是？"),
		PROBLEM_SEVEN("PROBLEM_SEVEN","您母亲的生日是？"),PROBLEM_EIGHT("PROBLEM_EIGHT","您小学班主任的名字是？"),
		PROBLEM_NINE("PROBLEM_NINE","您配偶的生日是？");
		private String code;
		private String name;
		private safetyProblem(String code, String name){
			this.code=code;
			this.name=name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title 还款状态
	 *
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月14日
	 */
	public enum REPAY_STATUS{
		WAIT_REPAY("WAIT_REPAY", "待还款"), NORMAL("NORMAL", "正常还款"),
		OVERDUE_NO_REPAY("OVERDUE_NO_REPAY", "逾期未还"), OVERDUE_REPAID("OVERDUE_REPAID", "逾期已还"),
		EARLY_REPAY("EARLY_REPAY", "提前还款");
		private String code;
		private String name;

		private REPAY_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title 投资记录状态
	 *
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月17日
	 */
	public enum INVEST_RECORD_STATUS{
		RECEIVING("RECEIVING", "回款中"), RECEIVED("RECEIVED", "已还完"),
		TRANSFERRED("TRANSFERRED", "已转让"), INVESTING("INVESTING", "投标中");
		
		private String code;
		private String name;
		
		private INVEST_RECORD_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * @title 投资交易状态
	 *
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月17日
	 */
	public enum INVEST_TRANS_STATUS{
		INVESTING("INVESTING", "投标中"), ASSIGNED("ASSIGNED", "已配资"),
		FAILURE("FAILURE", "流标");
		
		private String code;
		private String name;
		
		private INVEST_TRANS_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * @title 交易类型
	 *
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月17日
	 */
	public enum transactionType{
		TRANS_IN("TRANS_IN", "转入"), TRANS_OUT("TRANS_OUT", "转出"),
		FREEZE("FREEZE", "冻结"),RECHARGE("RECHARGE","充值"),WITHDRAW("WITHDRAW","提现");
		
		private String code;
		private String name;
		
		private transactionType(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title NW账户类型
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月20日
	 */
	public enum NW_ACCOUNT_TYPE{
		DEPOSIT("DEPOSIT", "托管账户"), BANK("BANK", "银行账户");
		
		private String code;
		private String name;
		
		private NW_ACCOUNT_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title NW账户用途
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月20日
	 */
	public enum NW_ACCOUNT_USE{
		CHARGE("CHARGE", "收付费账户"), ALLOWANCE("ALLOWANCE", "补贴红包账户"),
		CHANGE("CHANGE","调账账户");
		
		private String code;
		private String name;
		
		private NW_ACCOUNT_USE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	/**
	 * @title 账户种类
	 * @author bwz
	 * @version 1.0
	 * @created 2015年4月20日
	 */
	public enum ACCOUNT_KIND{
		NW("NW", "NW账户"), CUST("CUST", "客户账户"),
		CHL("CHL","渠道账户");
		
		private String code;
		private String name;
		
		private ACCOUNT_KIND(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}

	
    /**
     * @title 公司账户类型（渠道，借款企业）
     * @author cupid
     * @version 1.0
     * @created 2015年4月20日
     */
    public enum CORP_ACCOUNT_TYPE{
        GUARANTEE_CORP("GUARANTEE_CORP", "担保公司"), ENTERPRISE("ENTERPRISE", "企业借款人");
        private String code;
        private String name;
        
        private CORP_ACCOUNT_TYPE(String code, String name) {
            this.code = code;
            this.name = name;
        }
        
        public String getCode() {
            return code;
        }
        
        public void setCode(String code) {
            this.code = code;
        }
        
        public String getName() {
            return name;
        }
        
        public void setName(String name) {
            this.name = name;
        }
    }
    
    /**
     * @title 公司账户类型（渠道，借款企业）
     * @author jinchao
     * @version 1.0
     * @created 2015年4月22日
     */
    public enum CORP_TYPE{
    	CHANNEL("CHANNEL", "渠道公司"), COMMON_CORP("COMMON_CORP", "普通借款公司");
    	private String code;
    	private String name;
    	
    	private CORP_TYPE(String code, String name) {
    		this.code = code;
    		this.name = name;
    	}
    	
    	public String getCode() {
    		return code;
    	}
    	
    	public void setCode(String code) {
    		this.code = code;
    	}
    	
    	public String getName() {
    		return name;
    	}
    	
    	public void setName(String name) {
    		this.name = name;
    	}
    }
    
	/**
	 * 消息发送状态
	 * @author MONEY
	 *
	 */
	public enum SEND_STATUS{
		SENDING("SENDING", "发送中"), SENT("SENT", "已发送"),
		SEND_FAIL("SEND_FAIL","发送失败");
		
		private String code;
		private String name;
		
		private SEND_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 消息发送方式
	 * @author MONEY
	 *
	 */
	public enum MSG_SEND_METHOD{
		IN_MSG("IN_MSG","站内信"),
		SMS("SMS","短信"),
		EMAIL("EMAIL","邮件");
		private String code;
		private String name;
		
		private MSG_SEND_METHOD(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包有效期类型
	 * @author MONEY
	 *
	 */
	public enum RED_VALID_TERM{
		DAYS("DAYS","天数"),
		ONE_WEEK("ONE_WEEK","一周"),
		ONE_MONTH("ONE_MONTH","一个月"),
		THREE_MONTH("THREE_MONTH","三个月"),
		EVER("EVER","永久");
		private String code;
		private String name;
		
		private RED_VALID_TERM(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包使用状态
	 * @author MONEY
	 *
	 */
	public enum RED_USE_STATUS{
		NO_USE("NO_USE","未使用"),
		USED("USED","已使用"),
		WAIT_VALID("WAIT_VALID","待生效"),
		EXPIRED("EXPIRED","已过期"),
		LOCK("LOCK","锁定"),
		WAIT_AUDIT("WAIT_AUDIT","待审核"),
		REJECT("REJECT","拒绝");
		
		private String code;
		private String name;
		
		private RED_USE_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包触发者
	 * @author MONEY
	 *
	 */
	public enum TRIGGER_PERSON{
		OWNER("OWNER","自己"),
		RECOMMEND("RECOMMEND","推荐好友");
		
		private String code;
		private String name;
		
		private TRIGGER_PERSON(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包生成动作
	 * @author MONEY
	 *
	 */
	public enum TRIGGER_ACTION{
		MANNUAL("MANNUAL","手动"),
		REGISTER("REGISTER","注册"),
		OPEN_ACCT("OPEN_ACCT","资金账户开户"),
		INVEST("INVEST","投资"),
		RECOMMEND("RECOMMEND","推荐好友");
		private String code;
		private String name;
		
		private TRIGGER_ACTION(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包生成频率
	 * @author MONEY
	 *
	 */
	public enum RED_FREQUENCY{
		EVERY_TIME("EVERY_TIME","每次"),
		ONCE("ONCE","一次性");
		private String code;
		private String name;
		
		private RED_FREQUENCY(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包金额类型
	 * @author MONEY
	 *
	 */
	public enum RED_AMOUNT_TYPE{
		FIX("FIX","固定值"),
		PER("PER","比例"),
		AREA("AREA","区间值");
		private String code;
		private String name;
		
		private RED_AMOUNT_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包出发动作
	 * @author MONEY
	 *
	 */
	public enum RULE_TRI_ACTION{
		REGISTER("REGISTER","注册"),
		OPEN_ACCT("OPEN_ACCT","资金账户开户"),
		INVEST("INVEST","投资");
		private String code;
		private String name;
		
		private RULE_TRI_ACTION(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包规则状态
	 * @author MONEY
	 *
	 */
	public enum RED_RULE_STATUS{
		WAIT_VALID("WAIT_VALID","待生效"),
		HAD_VALID("HAD_VALID","已生效"),
		INVALID("INVALID","已失效");
		private String code;
		private String name;
		
		private RED_RULE_STATUS(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 红包规则状态
	 * @author MONEY
	 *
	 */
	public enum DEL_FLAG{
		DEL_Y("Y","已删除"),
		DEL_N("N","正常");
		private String code;
		private String name;
		
		private DEL_FLAG(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 
	 * @title 消息处理状态 
	 *
	 * @author zhangmingtao
	 * @version 1.0
	 * @created 2015年4月21日
	 */
	public enum MSG_PROCESS_STATUS{
		AGREE("AGREE","同意"),REFUSE("REFUSE","拒绝"),IGNORE("IGNORE","忽略"),DEFAULT("","默认状态");
		private String code;
		private String name;
		private MSG_PROCESS_STATUS(String code, String name){
			this.code = code;
			this.name = name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 资金流水处理状态
	 * @title DictConstant.java
	 *
	 * @author LIJIAN
	 * @version 1.0
	 * @created 2015年4月22日
	 */
	public enum flowDealStatus{
		SUCCESS("SUCCESS","成功"),FAIL("FAIL","失败"),HANDLE("HANDLE","处理中");
		private String code;
		private String name;
		private flowDealStatus(String code, String name){
			this.code = code;
			this.name = name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 充值提现费率类型
	 * @title DictConstant.java
	 *
	 * @author LIJIAN
	 * @version 1.0
	 * @created 2015年4月22日
	 */
	public enum feeType{
		PERCENT("PERCENT","费率"),FIXED("FIXED","固定值"),STEP("STEP","阶梯收费");
		private String code;
		private String name;
		private feeType(String code, String name){
			this.code = code;
			this.name = name;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
	}
	
	public static void main(String[] arg) {
		for (ProtType e : ProtType.values())
			System.out.println(e.getName() + " " + e.getCode() + ""
					+ e.getSeqKey());
		System.out.println(DictConstant.SEND_STATUS.SENT.getCode());
	}
	
	/**
	 * 借款企业类型
	 *
	 */
	public enum LOAN_CORP_TYPE{
		CHANNEL("CHANNEL","渠道公司"), COMMON_CORP("COMMON_CORP","普通借款公司");
		private String code;
		private String name;
		
		private LOAN_CORP_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 调用易宝平台单笔业务查询
	 * 充值/提现记录返回状态
	 *
	 */
	public enum yeepayRecordStatus{
		SUCCESS("SUCCESS","成功"), INIT("INIT","未付");
		private String code;
		private String name;
		
		private yeepayRecordStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 借款关联文件类型
	 *
	 */
	public enum LOAN_FILE_KIND{
		GENERATE("GENERATE","预览协议"), COMPLETE("COMPLETE","签署协议");
		private String code;
		private String name;
		
		private LOAN_FILE_KIND(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	/**
	 * 审核状态
	 */
	public enum LOAN_CLAIM_TYPE{
		AUDIT_PASS("AUDIT_PASS","审核通过"),
		AUDIT_RETURN("AUDIT_RETURN","审核退回"),
		AUDIT_REJECT("AUDIT_REJECT","核准拒绝"),
		VIEW_PASS("VIEW_PASS","面签通过"),
		VIEW_REJECT("VIEW_REJECT","面签拒绝"),
		LOAN_PASS("LOAN_PASS","放款通过"),
		LOAN_REJECT("LOAN_REJECT","放款拒绝"),
		OVERDUE_BACKUP("OVERDUE_BACKUP","逾期备注");
		private String code;
		private String name;
		
		private LOAN_CLAIM_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 
	 * @title 星座 
	 *
	 * @author zhangmingtao
	 * @version 1.0
	 * @created 2015年4月27日
	 */
	public enum CONSTELLATION {
		AQUARIAN("AQU", "水瓶座"), PISCES("PIS", "双鱼座"), ARIES("ARI", "白羊座"), TAURUS("TAU", "金牛座"), GEMINI("GEM", "双子座"), CANCER("CAN", "巨蟹座"), LEONIS("LEO", "狮子座"), VIRGO("VIR", "处女座"), LIBRA("LIB", "天秤座"), SCORPIO("SCO", "天蝎座"), SAGITTARIUS("SAG", "射手座"), CAPRICORNUS("CAP", "摩羯座");
		private String code;
		private String name;

		private CONSTELLATION(String code, String name) {
			this.code = code;
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	
	
	public enum BORROWER_TYPE{
		PERSONAL("PERSONAL","个人"),
		CORPORATION("CORPORATION","企业");
		
		private String code;
		private String name;
		
		private BORROWER_TYPE(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
	
	/**
	 * 
	 * @title 学历常量
	 *
	 * @author zhangmingtao
	 * @version 1.0
	 * @created 2015年4月29日
	 */
	public enum EDUCATION{
		SENIOR("SENI","高中"),COLLEGE("COLL","专科"),UNDERGRADUATE("UND","本科"),MASTER("MAST","硕士"),DOCTOR("DOCT","博士");
		
		private String code;
		private String name;
		
		private EDUCATION(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
		
	/**
	 * 
	 * @title 投资计划转让审核状态
	 */
	public enum PlanAuditStatus{
		WAIT_AUDIT("WAIT_AUDIT","待审核"),
		NO_PASS("NO_PASS","未通过"),
		QUITTING("QUITTING","退出中"),
		QUITTED("QUITTED","已退出");
		
		private String code;
		private String name;
		
		private PlanAuditStatus(String code, String name) {
			this.code = code;
			this.name = name;
		}
		
		public String getCode() {
			return code;
		}
		
		public void setCode(String code) {
			this.code = code;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
	}
}
